<script lang="ts" setup>
import { get, post, Message, loadFile } from '@/utils'
const emit = defineEmits(['update:val'])
const props = defineProps<{ val: string }>()
const id = ref(props.val)
const treeData = ref([])
const getTreeData = () => {
  get({ url: '/server-shop/sys-seller/goods/category/tree' }, ({ data }) => {
    treeData.value = data
  })
}
getTreeData()
</script>
<template>
  <a-tree-select v-model="id" @change="emit('update:val', id)" :data="treeData" placeholder="请选择链接" />
</template>
<style lang="less" scoped></style>
